#!/bin/sh

cp $1 $1.test
echo "WaNd0r!P|r4t3sRuL3" > keytest
sha256sum keytest
echo "WaNd0r!P|r4t3sRuL3" | tomcrypt/encrypt aes $1.test $1.test.enc 
echo "WaNd0r!P|r4t3sRuL3" | tomcrypt/encrypt -d aes $1.test.enc $1.test.dec 
diff $1 $1.test.dec 

